<%
  #File :   /app/views/pages/_list_data.rhtml
  #Author:  Andrew Stone
  #Created: 11.02.2006
%> 
<table>
  <thead>
    <tr>
      <td>Folder : Page Title</td>
      <td>Actions</td>
    </tr>
  </thead>
  <tbody>
  <%
    i = 0
    @pages.each{|pg|
      bg = row_class(i)
      i += 1
  %>
      <tr class="<%=bg%>">
        <td><%=h(pg[:name])%></td>
        <td class="action">
          <%=secure_links([
            secure_link_to("Update", ca("/manage/pages","update", pg[:id])),
            secure_link_to("Show", ca("/manage/pages","show", pg[:id])),
            secure_link_to("Copy", ca("/manage/pages","create", pg[:id])),
            secure_link_to("Delete", ca("/manage/pages","delete", pg[:id]), :confirm => "Are you sure?")
          ])%>
        </td>
      </tr>
  <% 
    } %>
  </tbody>  
</table>
<div id="actions">
<%=secure_link_to("Create Page",{:controller => "/manage/pages", :action => "create"})%>
</div>
